package com.css.dzj.zfjg.modules.supervisioncompinfo.entity;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.util.Date;
import java.util.Objects;

/**
 * 投诉分办信息表
 */
@Entity
@Table(name = "JG_FB_COMPLAINT", schema = "DZJZFJG", catalog = "")
public class JgFbComplaintEntity {
    private String fbId;
    private String registerCode;
    private String fbBureau;
    private String fbDepartment;
    private Date refuseTime;
    private Date receiveTime;
    private String checkAction;
    private String checkResult;
    private String refuseReason;
    private Date replyTime;
    private String fbState;
    private Date createTime;
    private String createUser;
    private Date updateTime;
    private String updateUser;
    private String fbType;
    //delFlag  2 被删除的数据
    private String delFlag;

    @Id
    @Column(name = "Fb_Id")
    @GeneratedValue(generator = "idGenerator")
    @GenericGenerator(name = "idGenerator", strategy = "com.css.dzj.zfjg.common.util.SnowflakeId")
    public String getFbId() {
        return fbId;
    }

    public void setFbId(String fbId) {
        this.fbId = fbId;
    }

    @Basic
    @Column(name = "Register_Code")
    public String getRegisterCode() {
        return registerCode;
    }

    public void setRegisterCode(String registerCode) {
        this.registerCode = registerCode;
    }

    @Basic
    @Column(name = "Fb_Bureau")
    public String getFbBureau() {
        return fbBureau;
    }

    public void setFbBureau(String fbBureau) {
        this.fbBureau = fbBureau;
    }

    @Basic
    @Column(name = "Fb_Department")
    public String getFbDepartment() {
        return fbDepartment;
    }

    public void setFbDepartment(String fbDepartment) {
        this.fbDepartment = fbDepartment;
    }

    @Basic
    @Column(name = "Refuse_Time")
    public Date getRefuseTime() {
        return refuseTime;
    }

    public void setRefuseTime(Date refuseTime) {
        this.refuseTime = refuseTime;
    }

    @Basic
    @Column(name = "Receive_Time")
    public Date getReceiveTime() {
        return receiveTime;
    }

    public void setReceiveTime(Date receiveTime) {
        this.receiveTime = receiveTime;
    }

    @Basic
    @Column(name = "Check_Action")
    public String getCheckAction() {
        return checkAction;
    }

    public void setCheckAction(String checkAction) {
        this.checkAction = checkAction;
    }

    @Basic
    @Column(name = "Check_Result")
    public String getCheckResult() {
        return checkResult;
    }

    public void setCheckResult(String checkResult) {
        this.checkResult = checkResult;
    }

    @Basic
    @Column(name = "Refuse_Reason")
    public String getRefuseReason() {
        return refuseReason;
    }

    public void setRefuseReason(String refuseReason) {
        this.refuseReason = refuseReason;
    }

    @Basic
    @Column(name = "Reply_Time")
    public Date getReplyTime() {
        return replyTime;
    }

    public void setReplyTime(Date replyTime) {
        this.replyTime = replyTime;
    }

    @Basic
    @Column(name = "Fb_State")
    public String getFbState() {
        return fbState;
    }

    public void setFbState(String fbState) {
        this.fbState = fbState;
    }

    @Basic
    @Column(name = "Create_Time")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "Create_User")
    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    @Basic
    @Column(name = "Update_Time")
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Basic
    @Column(name = "Update_User")
    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    @Basic
    @Column(name = "Fb_Type")
    public String getFbType() {
        return fbType;
    }

    public void setFbType(String fbType) {
        this.fbType = fbType;
    }

    @Basic
    @Column(name = "del_Flag")
    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }
    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        JgFbComplaintEntity that = (JgFbComplaintEntity) o;
        return Objects.equals(fbId, that.fbId) &&
                Objects.equals(registerCode, that.registerCode) &&
                Objects.equals(fbBureau, that.fbBureau) &&
                Objects.equals(fbDepartment, that.fbDepartment) &&
                Objects.equals(refuseTime, that.refuseTime) &&
                Objects.equals(receiveTime, that.receiveTime) &&
                Objects.equals(checkAction, that.checkAction) &&
                Objects.equals(checkResult, that.checkResult) &&
                Objects.equals(refuseReason, that.refuseReason) &&
                Objects.equals(replyTime, that.replyTime) &&
                Objects.equals(fbState, that.fbState) &&
                Objects.equals(createTime, that.createTime) &&
                Objects.equals(createUser, that.createUser) &&
                Objects.equals(updateTime, that.updateTime) &&
                Objects.equals(updateUser, that.updateUser) &&
                Objects.equals(fbType, that.fbType)&&
                Objects.equals(delFlag, that.delFlag);
    }

    @Override
    public int hashCode() {
        return Objects.hash(fbId, registerCode, fbBureau, fbDepartment, refuseTime, receiveTime, checkAction, checkResult, refuseReason, replyTime, fbState, createTime, createUser, updateTime, updateUser, fbType,delFlag);
    }
}
